<layout name="layout"/>
<include file="./nav"/>


<!-- BEGIN PAGE LEVEL STYLES -->

<link rel="stylesheet" type="text/css" href="__PUBLIC__/media/css/select2_metro.css" />

<link rel="stylesheet" type="text/css" href="__PUBLIC__/media/css/chosen.css" />

<!-- END PAGE LEVEL STYLES -->

<!-- BEGIN CONTAINER -->

<div class="page-container row-fluid">


    <!-- BEGIN PAGE -->

    <div class="page-content">

        <!-- BEGIN PAGE CONTAINER-->

        <div class="container-fluid">

            <!-- BEGIN PAGE HEADER-->

            <div class="row-fluid">

                <div class="span12">

                    <h3 class="page-title">{$_page_title}</h3>

                    <ul class="breadcrumb">

                        <li>

                            <i class="icon-home"></i>

                            <a href="{:U('Index/index')}">首页</a>

                            <span class="icon-angle-right"></span>

                        </li>

                        <li>

                            <a href="#">{$_module_name}</a>

                            <span class="icon-angle-right"></span>

                        </li>

                        <li><a href="#">{$_page_title}</a></li>

                    </ul>

                </div>

            </div>

            <!-- END PAGE HEADER-->

            <!-- BEGIN PAGE CONTENT-->

            <div class="row-fluid">

                <div class="span12">

                    <!-- BEGIN VALIDATION STATES-->

                    <div class="portlet box blue">

                        <div class="portlet-title">

                            <div class="caption"><i class="icon-reorder"></i>品牌信息</div>


                        </div>

                        <div class="portlet-body form">

                            <!-- BEGIN FORM-->

                            <form action="__SELF__" class="form-horizontal" name="main_form" method="POST" enctype="multipart/form-data">
                                <input type="hidden" name="id" value="<?php echo $data['id']; ?>" />
                                <input type="hidden" name="old_logo" value="<?php echo $data['logo']; ?>" />
                                <input type="hidden" name="old_big_logo" value="<?php echo $data['big_logo']; ?>" />
                                <input type="hidden" name="old_mid_logo" value="<?php echo $data['mid_logo']; ?>" />
                                <input type="hidden" name="old_sm_logo" value="<?php echo $data['sm_logo']; ?>" />

                                <div class="control-group info">

                                    <label class="control-label" >品牌名称：</label>

                                    <div class="controls">

                                        <input type="text" class="span6 m-wrap"  name="brand_name" value="<?php echo $data['brand_name']; ?>"/>

                                        <span class="help-inline" style="font-size:20px">*</span>
                                    </div>

                                </div>

                                <div class="control-group info">

                                    <label class="control-label" for="inputError">官方网址：</label>

                                    <div class="controls">

                                        <input type="text" class="span6 m-wrap" id="inputError" name="site_url" value="<?php echo $data['site_url']; ?>"/>

                                        <span class="help-inline" style="font-size:20px">*</span>

                                    </div>

                                </div>

                                <div class="control-group info">

                                    <label class="control-label" >品牌Logo：</label>

                                    <div class="controls">

                                        <input type="file" name="logo" /><br />
                                        <?php showImage($data['logo'], 100); ?>

                                    </div>

                                </div>

                                <div class="form-actions">

                                    <button type="submit" class="btn blue">添加</button>

                                    <button type="button" class="btn" onclick="window.history.back();">取消</button>

                                </div>

                            </form>

                            <!-- END FORM-->

                        </div>

                    </div>

                    <!-- END VALIDATION STATES-->

                </div>

            </div>

            <!-- END PAGE CONTENT-->

        </div>

        <!-- END PAGE CONTAINER-->

    </div>

    <!-- END PAGE -->

</div>

<!-- END CONTAINER -->

<!-- BEGIN JAVASCRIPTS(Load javascripts at bottom, this will reduce page load time) -->

<!-- BEGIN CORE PLUGINS -->

<script src="__PUBLIC__/media/js/jquery-1.10.1.min.js" type="text/javascript"></script>

<script src="__PUBLIC__/media/js/jquery-migrate-1.2.1.min.js" type="text/javascript"></script>

<!-- IMPORTANT! Load jquery-ui-1.10.1.custom.min.js before bootstrap.min.js to fix bootstrap tooltip conflict with jquery ui tooltip -->

<script src="__PUBLIC__/media/js/jquery-ui-1.10.1.custom.min.js" type="text/javascript"></script>

<script src="__PUBLIC__/media/js/bootstrap.min.js" type="text/javascript"></script>

<!--[if lt IE 9]>

<script src="__PUBLIC__/media/js/excanvas.min.js"></script>

<script src="__PUBLIC__/media/js/respond.min.js"></script>

<![endif]-->

<script src="__PUBLIC__/media/js/jquery.slimscroll.min.js" type="text/javascript"></script>

<script src="__PUBLIC__/media/js/jquery.blockui.min.js" type="text/javascript"></script>

<script src="__PUBLIC__/media/js/jquery.cookie.min.js" type="text/javascript"></script>

<script src="__PUBLIC__/media/js/jquery.uniform.min.js" type="text/javascript" ></script>

<!-- END CORE PLUGINS -->

<!-- BEGIN PAGE LEVEL PLUGINS -->

<script type="text/javascript" src="__PUBLIC__/media/js/jquery.validate.min.js"></script>

<script type="text/javascript" src="__PUBLIC__/media/js/additional-methods.min.js"></script>

<script type="text/javascript" src="__PUBLIC__/media/js/select2.min.js"></script>

<script type="text/javascript" src="__PUBLIC__/media/js/chosen.jquery.min.js"></script>

<!-- END PAGE LEVEL PLUGINS -->

<!-- BEGIN PAGE LEVEL STYLES -->

<script src="__PUBLIC__/media/js/app.js"></script>

<script src="__PUBLIC__/media/js/form-validation.js"></script>

<!-- END PAGE LEVEL STYLES -->

<script>

    jQuery(document).ready(function() {

        // initiate layout and plugins

        App.init();

        FormValidation.init();

    });

</script>

<!-- END JAVASCRIPTS -->
